package com.qiy.springcloud.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.qiy.springcloud.entities.CommonResult;

public class CustomerBlockHandler {

    public CommonResult handlerException(BlockException exception){
        return new CommonResult(4444, "按客户自定义的 gloabal Exception --- 1", null);
    }

    public CommonResult handlerException2(BlockException exception){
        return new CommonResult(4444, "按客户自定义的 gloabal Exception --- 2", null);
    }
}
